﻿<UserControl x:Class="Simp.Interpreter.TextOutputUserControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:local="clr-namespace:Simp.Interpreter">
	<ScrollViewer Name="scrollViewer" VerticalScrollBarVisibility="Auto">
		<ItemsControl
			ItemsSource="{Binding ContentItemList, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}">
			<ItemsControl.ItemTemplate>
				<DataTemplate>
					<local:ContentItemUserControl ContentItem="{Binding}"/>
				</DataTemplate>
			</ItemsControl.ItemTemplate>
		</ItemsControl>
	</ScrollViewer>
</UserControl>